package drawings;

import java.util.Arrays;

public class Drawing {
	private String date;
	private int drawingId = 0;
	private static int numberOfDrawings = 0;
	protected int[] tableOfDrawedBalls;

	public Drawing(int drawingId, String date) {

		this.drawingId = drawingId;
		this.date = date;
	}

	@Override
	public String toString() {
		StringBuffer result = new StringBuffer();
		result.append("Numer losowania: " + drawingId + "\n");
		result.append("Data losowania: " + date + "\n");
		result.append("Wyniki losowania: "	+ Arrays.toString(tableOfDrawedBalls) + "\n");
		return result.toString();
	}


	public int[] getTableOfDrawedBalls() {
		return tableOfDrawedBalls;
	}


	public static int getNumberOfDrawings() {
		return Drawing.numberOfDrawings;
	}

	public static void setNumberOfDrawings(int numberOfDrawings) {
		Drawing.numberOfDrawings = numberOfDrawings;
	}

}
